/**
 * @type {Number}
 *
 * @properties={typeid:35,uuid:"C8B36ACA-6109-4CE2-9C63-6FF43087A082",variableType:4}
 */
var fTipo = null;

/**
 * Perform the element default action.
 *
 * @param {JSEvent} event the event that triggered the action
 *
 * @properties={typeid:24,uuid:"116807C5-E539-4FA3-839C-30BB35971C3C"}
 * @AllowToRunInFind
 */
function buscar(event) {
	controller.find()
	
	tipo_proveedor = fTipo
	
	controller.search()
}

/**
 * Perform the element default action.
 *
 * @param {JSEvent} event the event that triggered the action
 *
 * @properties={typeid:24,uuid:"CF5985ED-329C-445E-B415-5459EE414590"}
 */
function nuevo(event) {
	databaseManager.setAutoSave(false)
	var $win = application.createWindow('ALTA_PROVEEDORES',JSWindow.MODAL_DIALOG)
	forms.proveedores_dtl.controller.newRecord()
	forms.proveedores_dtl.controller.show($win)
}

/**
 * Perform the element default action.
 *
 * @param {JSEvent} event the event that triggered the action
 *
 * @properties={typeid:24,uuid:"CC14FD25-FFDE-4D8B-B6DA-607A3CCD8C4C"}
 */
function modificar(event) {
	databaseManager.setAutoSave(false)
	var $win = application.createWindow('ALTA_PROVEEDORES',JSWindow.MODAL_DIALOG)
	forms.proveedores_dtl.controller.show($win)
}
